package com.chixing.day03_oop;

public class Account {
    private int accNo;
    private String accName;
    private int accPassword;
    private long accTelno;
    private int accBalance;
    private int accType;

    public int getAccNo() {
        return accNo;
    }

    public void setAccNo(int accNo) {
        this.accNo = accNo;
    }

    public String getAccName() {
        return accName;
    }

    public void setAccName(String accName) {
        this.accName = accName;
    }

    public int getAccPassword() {
        return accPassword;
    }

    public void setAccPassword(int accPassword) {
        this.accPassword = accPassword;
    }

    public long getAccTelno() {
        return accTelno;
    }

    public void setAccTelno(long accTelno) {
        this.accTelno = accTelno;
    }

    public int getAccBalance() {
        return accBalance;
    }

    public void setAccBalance(int accBalance) {
        this.accBalance = accBalance;
    }

    public int getAccType() {
        return accType;
    }

    public void setAccType(int accType) {
        this.accType = accType;

    }

    public double deposit(double dep){
        return this.accBalance += dep;
    }

    public double withdraw(double wdr){
        return this.accBalance -= wdr;
    }

    public Account fun1(){
        return null;
    }
    public Account fun2(){
        return new Account();
    }

    public Account fun3(){
        return    this;
    }

    public int fun4(){
        return  0;
    }

}
